/*
 * $Id$
 */
package py.windmill.resolution;

import py.windmill.action.Request;

/**
 *
 * @author myang
 */
public class TilesSupport extends Tiles {

    private TilesMap _tilesMap;

    /**
     * 
     * @param key
     * @param val 
     */
    public TilesSupport(final String key, final Object val) {
        this(new TilesMap(key, val));
    }

    /**
     * 
     * @param tm 
     */
    public TilesSupport(final TilesMap tm) {
        _tilesMap = tm;
    }

    /**
     * 
     * @param req
     * @param val
     * @return 
     */
    @Override
    public TilesMap prepare(final Request req, final Object val) {
        return _tilesMap;
    }
    
}
